import 'package:flutter/material.dart';

// 水平方向平均分成 N 份
class EqualPartsVertical extends StatelessWidget {
  // 内容
  final List<Widget> bodys;

  const EqualPartsVertical(
    this.bodys, {
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Row(
      children: bodys
          .map(
            (body) => Expanded(
              child: body,
            ),
          )
          .toList(),
    );
  }
}